﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/pages/master/WebForm.Master"
    CodeBehind="Edit.aspx.cs" Inherits="BF.Web.pages.XZCF_WS_ZJBCJDSPage.Edit" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" language="javascript">
        $(function () {
            //关闭
            $("#<%=btnClose.ClientID %>").click(function () {
                parent.TabPanel.remove(parent.TabPanel.getActiveTab());
                return false;
            });
        });

        function DoAdd() {
            $(parent.document).find(".x-window-header-text").html("新增");
            this.location.href = 'Edit.aspx';
        }

        function UpatePage(sID) {
            $(parent.document).find(".x-window-header-text").html("修改");
            this.location.href = 'Edit.aspx?sID=' + sID;
        }

    </script>
    <script type="text/javascript" language="javascript">
        //前台验证方法  
        function validate() {
            //var result = $("#aspnetForm").validate({
            //    rules: {
            //       ctl00$ContentPlaceHolder1$sID: {
            //           required: true
            //        }
            //    }
            //    errorClass: "errorClass"
            //});
            //return result.form();
            return true;
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--<span style="color: Red">*</span>-->
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="content01">
        <tbody>
            <tr style="height: 18px;">
                <td colspan="4">
                </td>
            </tr>
            <tr>
                <td align="right">
                    处罚单位：
                </td>
                <td colspan="3">
                    <tll:DataTextBox ID="sCFDW" runat="server" Width="97%" FeildName="sCFDW" TableName="XZCF_WS_ZJBCJDS"></tll:DataTextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    保存方式：
                </td>
                <td>
                    <tll:DataDropDownList ID="iBCFS" runat="server" Width="180" FeildName="iBCFS" TableName="XZCF_WS_ZJBCJDS" DataTextField="sName" DataValueField="sCode">
                    </tll:DataDropDownList>
                </td>
                <td align="right">
                    保存开始时间：
                </td>
                <td>
                    <tll:DataDateBox ID="dBCKSSJ" runat="server" Width="180" onclick="WdatePicker();" DateFormat="yyyy-MM-dd" FeildName="dBCKSSJ" TableName="XZCF_WS_ZJBCJDS"></tll:DataDateBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    保存结束时间：
                </td>
                <td>
                    <tll:DataDateBox ID="dBCJSSJ" runat="server" Width="180" onclick="WdatePicker();" DateFormat="yyyy-MM-dd" FeildName="dBCJSSJ" TableName="XZCF_WS_ZJBCJDS"></tll:DataDateBox>
                </td>
                <td align="right">
                    保存地点：
                </td>
                <td>
                    <tll:DataTextBox ID="sBCDD" runat="server" Width="180" FeildName="sBCDD" TableName="XZCF_WS_ZJBCJDS"></tll:DataTextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    物品清单：
                </td>
                <td colspan="3">
                    <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" Height="300" Width="98%" ToolbarSet="WSJD" ToolbarCanCollapse="false"></FCKeditorV2:FCKeditor>
                    <%--<tll:DataTextBox ID="sWPQD" runat="server" Width="180" FeildName="sWPQD" TableName="XZCF_WS_ZJBCJDS"></tll:DataTextBox>--%>
                </td>
            </tr>
            <tr>
                <td align="right">
                    当事人签名：
                </td>
                <td>
                    <tll:DataTextBox ID="sDSRQM" runat="server" Width="180" FeildName="sDSRQM" TableName="XZCF_WS_ZJBCJDS"></tll:DataTextBox>
                </td>
                <td align="right">
                    签名时间：
                </td>
                <td>
                    <tll:DataDateBox ID="dDSRQMRQ" runat="server" Width="180" onclick="WdatePicker();" DateFormat="yyyy-MM-dd" FeildName="dDSRQMRQ" TableName="XZCF_WS_ZJBCJDS"></tll:DataDateBox>
                </td>
            </tr>
        </tbody>
    </table>
    <table width="100%" height="36" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr style="height: 18px;">
            <td colspan="4">
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnAdd" runat="server" OnClientClick="return DoAdd();" TabIndex="0"
                    Text="新增" class="btn04" Visible="false" />&nbsp;
                <asp:Button ID="btnSave" runat="server" TabIndex="0" Text="保存" class="btn04" OnClick="btnSave_Click"
                    OnClientClick="return validate();" />&nbsp;
                <asp:Button ID="btnClose" runat="server" TabIndex="0" Text="关闭" class="btn04" />
            </td>
        </tr>
    </table>
    <asp:UpdatePanel ID="Updatepanel1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
